package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysFollowMapper;
import com.ruoyi.system.domain.SysFollow;
import com.ruoyi.system.service.ISysFollowService;

/**
 * 关注Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-01
 */
@Service
public class SysFollowServiceImpl implements ISysFollowService 
{
    @Autowired
    private SysFollowMapper sysFollowMapper;

    /**
     * 查询关注
     * 
     * @param id 关注主键
     * @return 关注
     */
    @Override
    public SysFollow selectSysFollowById(Long id)
    {
        return sysFollowMapper.selectSysFollowById(id);
    }

    /**
     * 查询关注列表
     * 
     * @param sysFollow 关注
     * @return 关注
     */
    @Override
    public List<SysFollow> selectSysFollowList(SysFollow sysFollow)
    {
        return sysFollowMapper.selectSysFollowList(sysFollow);
    }

    /**
     * 新增关注
     * 
     * @param sysFollow 关注
     * @return 结果
     */
    @Override
    public int insertSysFollow(SysFollow sysFollow)
    {
        return sysFollowMapper.insertSysFollow(sysFollow);
    }

    /**
     * 修改关注
     * 
     * @param sysFollow 关注
     * @return 结果
     */
    @Override
    public int updateSysFollow(SysFollow sysFollow)
    {
        return sysFollowMapper.updateSysFollow(sysFollow);
    }

    /**
     * 批量删除关注
     * 
     * @param ids 需要删除的关注主键
     * @return 结果
     */
    @Override
    public int deleteSysFollowByIds(Long[] ids)
    {
        return sysFollowMapper.deleteSysFollowByIds(ids);
    }

    /**
     * 删除关注信息
     * 
     * @param id 关注主键
     * @return 结果
     */
    @Override
    public int deleteSysFollowById(Long id)
    {
        return sysFollowMapper.deleteSysFollowById(id);
    }
}
